package com.chat.view;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

/*
   创建群聊的视图类
 */
public class CreatGroupView {
    static Stage loginStage;
    static Parent root;
    public static  void start(Stage primaryStage)throws IOException {
        loginStage = primaryStage;
        root= FXMLLoader.load(AddFriendView.class.getResource("creatgroup.fxml"));
        primaryStage.setTitle("创建群聊");
        primaryStage.setScene(new Scene(root,600,400));
        primaryStage.show();
    }
    public static Object $(String id) {
        return (Object) root.lookup("#" + id);
    }//该方法用来获取每一个控件
}
